import { Router } from 'express';
import crawlerController from '@controllers/crawler.controller';

const router = Router();

/**
 * @route   POST /api/v1/crawlers/test
 * @desc    测试爬虫配置
 * @access  Private
 */
router.post('/test', crawlerController.testCrawler);

/**
 * @route   GET /api/v1/crawlers
 * @desc    获取爬虫列表
 * @access  Private
 */
router.get('/', crawlerController.getCrawlers);

/**
 * @route   POST /api/v1/crawlers
 * @desc    创建爬虫
 * @access  Private
 */
router.post('/', crawlerController.createCrawler);

export default router;
